package com.ddstation.crud.mapper;

import com.ddstation.crud.entity.DtInvsManageInstitutionSupervisorEntity;
import com.ddstation.crud.entity.DtInvsManageInstitutionSupervisorEntityKey;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DtInvsManageInstitutionSupervisorMapper {

    int insert(DtInvsManageInstitutionSupervisorEntity record);

    int insertSelective(DtInvsManageInstitutionSupervisorEntity record);

    DtInvsManageInstitutionSupervisorEntity selectByPrimaryKey(DtInvsManageInstitutionSupervisorEntityKey key);

    DtInvsManageInstitutionSupervisorEntity selectByUserName(String loginUser);

    DtInvsManageInstitutionSupervisorEntity selectByLoginUser(DtInvsManageInstitutionSupervisorEntityKey key);

    int updateByPrimaryKeySelective(DtInvsManageInstitutionSupervisorEntity record);

    int updateByPrimaryKey(DtInvsManageInstitutionSupervisorEntity record);

    int deleteByPrimaryKey(@Param("supervisorId") int supervisorId, @Param("institutionId") String institutionId);

    int insertReplace(DtInvsManageInstitutionSupervisorEntity record);

    int insertByList(List<DtInvsManageInstitutionSupervisorEntity> list);
}